﻿using System.Threading.Tasks;

namespace Zo.MessageQueues
{
    /// <summary>
    /// 消息发送者。
    /// </summary>
    public interface IMessagePublisher
    {
        /// <summary>
        /// 发送消息。
        /// </summary>
        /// <param name="message">消息实体。</param>
        /// <returns>结果。</returns>
        Task<MessageResult> SendAsync(PublishedMessage message);
    }
}